<div class="modal-content" ng-controller="WinningRecordCtrl">
    <div class="modal-header">
        <button type="button" class="close" ng-click="myopen.opt_close()" aria-label="Close">
      <em class="ion-ios-close-empty sn-link-close"></em>
    </button>
        <h3 class="modal-title text-center">
            <samll>中奖记录</samll>
        </h3>
    </div>
    <form class="row form-inline ng-pristine ng-valid ng-scope">
        <div class="row">
            <div class="col-lg-6 col-sm-12">
                <h4 style="line-height: 30px;" class="col-sm-3 col-xs-5 text-right">用户名:</h4>
                <div class="form-group  col-sm-8 col-xs-5">
                    <input type="text" class="form-control" id="exampleInputName2" placeholder="请输入用户名" ng-model="search_opt.user_name">
                </div>
            </div>
            <!--<div class="col-lg-6 col-sm-12">
                <h4 style="line-height: 30px;" class="col-sm-3 col-xs-5 text-right">手机号:</h4>
                <div class="form-group  col-sm-8 col-xs-5">
                    <input type="text" class="form-control" id="exampleInputName2" placeholder="请输入手机号" ng-mode="search_opt.mobile">
                </div>
            </div>-->
        </div>
        <div class="row">
            <!--<div class="col-lg-6 col-sm-12">
                <h4 style="line-height: 30px;" class="col-sm-3 col-xs-5 text-right">地区:</h4>
                <div class="form-group  col-sm-8 col-xs-5">
                    <input type="text" class="form-control" id="exampleInputName2" placeholder="请输入地区" ng-mode="search_opt.area">
                </div>
            </div>-->
            <div class="col-lg-12 col-sm-10">
                <!--<div class="form-group col-sm-3">
                    <h4 class="text-right">性别:</h4>
                </div>
                <div class="col-sm-5" style="    margin-top: 10px;">
                    <div class="col-sm-4"><label class="radio-inline custom-radio nowrap"><input type="radio" name="inlineRadioOptions" id="inlineRadio1" value="不限" ng-checked="search_opt.sex=='all'" ng-click= "search_opt.sex='all'"> <span>不限</span></label></div>
                    <div class="col-sm-4"><label class="radio-inline custom-radio nowrap"><input type="radio" name="inlineRadioOptions" id="inlineRadio2" value="男" ng-checked="search_opt.sex=='2'" ng-click= "search_opt.sex='2'"> <span>男</span></label></div>
                    <div class="col-sm-4"><label class="radio-inline custom-radio nowrap"><input type="radio" name="inlineRadioOptions" id="inlineRadio3" value="女" ng-checked="search_opt.sex=='1'" ng-click= "search_opt.sex='1'"> <span>女</span></label></div>
                </div>-->
                <div class="col-lg-2 text-right">
                    <button type="submit " class="btn btn-primary " ng-click="Search()">搜索</button>
                </div>
            </div>
        </div>
    </form>
    <div style="min-height:300px;padding: 20px; ">
        <table class="table table-bordered ">
            <thead>
                <tr valign="middle  text-center">
                    <th class="browser-icons "></th>
                    <th class=" text-center ">用户头像</th>
                    <th class=" text-center ">用户名</th>
                    <th class=" text-center ">中奖时间</th>
                    <th class=" text-center ">中奖金额</th>

                </tr>
            </thead>
            <tbody>
                <tr ng-repeat="item in list_data track by $index" style="line-height:70px ">
                    <td style=" line-height:60px; width: 50px; " class=" text-center ">{{$index + 1}}</td>
                    <td style=" line-height:60px" class=" text-center "><img style="height: 50px;margin:5px;" ng-src="{{item.headimgurl.indexOf('http') > -1? item.headimgurl: (Qiniu_url + item.headimgurl)}}" alt=""></td>
                    <td style="line-height:60px " class=" text-center ">{{item.username}}</td>
                    <td style=" line-height:60px " class=" text-center ">{{item.createtime|date:"yyyy-MM-dd HH:mm"}}</td>
                    <td style=" line-height:60px; width: 130px;  " class=" text-center ">{{item.amount/100|currency :'￥'}}</td>
                </tr>
            </tbody>
        </table>
        <div class="text-center row" style="padding: 20px; ">
            <div class="col-sm-6 text-right">
                <ul style=" margin: 0; " uib-pagination total-items="bigTotalItems " previous-text="上一页 " next-text="下一页 " first-text="首页 " last-text="尾页 " ng-model="search_opt.page " ng-change="pageChanged(search_opt.page) " max-size="maxSize " class="pagination-sm
                " boundary-links="true " num-pages="numPages " items-per-page="search_opt.limit"></ul>
            </div>

            <div class="col-sm-6 text-left"><label>
                         <select style="height: 30px;font-weight: 300;" class="form-control"  selectpicker ng-model="search_opt.limit"  ng-change="Search()"  ng-options="i for i in [5,10,20,50,100]">
                        </select>
                    </label> /条（每页）</div>
        </div>
    </div>

    <div class="modal-footer">
        <button type="button" class="btn btn-primary" ng-click="myopen.opt_close()">完成</button>
    </div>
</div>